<extend name="Public/base" />

<block name="body">
<div class="main-title">
	<h2>编辑试题</h2>
</div>
<form action="{:U('')}" method="post" class="form-horizontal">
    <div class="form-item">
		<label class="item-label">类型<span class="check-tips">（试题类型）</span></label>
		<div class="controls">
				<select name="questiontype" style="width:100px;">
					<volist name="Think.config.APP_QUESTIONTYPE_LIST" id="vo">
						<option value="{$key}">{$vo}</option>
					</volist>
				</select>
		</div>
	</div>
	<div class="form-item">
		<label class="item-label">章节<span class="check-tips">（所属章节）</span></label>
		<div class="controls">
				<select name="chapter" style="width:100px;">
					<volist name="Think.config.APP_CHAPTER_LIST" id="vo">
						<option value="{$key}">{$vo}</option>
					</volist>
				</select>
		</div>
	</div>
	<div class="form-item">
		<label class="item-label">难度<span class="check-tips">（试题难易程度）</span></label>
		<div class="controls">
				<select name="difficulty" style="width:100px;">
					<volist name="Think.config.APP_DIFFICULTY_LIST" id="vo">
						<option value="{$key}">{$vo}</option>
					</volist>
				</select>
		</div>
	</div>
	<div class="form-item">
		<label class="item-label">题目<span class="check-tips">（试题题目）</span></label>
		<div class="controls">
			<label class="textarea input-large" style="width:60%;height:200px;"> 
			   <textarea name="title" style="width:100%;height:100%;">{$questioninfo.title}</textarea>
			</label>
		</div>
	</div>
	<div class="form-item">
		<label class="item-label">空行<span class="check-tips">（答题所需行数）</span></label>
		<div class="controls">
			<input type="text" class="text input-small" name="answer_rows"
				value="{$questioninfo.answer_rows}" />
		</div>
	</div>
	<div class="form-item">
	    <input type="hidden" name="id" value="{$questioninfo.id}">
		<button class="btn submit-btn ajax-post" id="submit" type="submit"
			target-form="form-horizontal">确 定</button>
		<button class="btn btn-return"
			onclick="javascript:history.back(-1);return false;">返 回</button>
	</div>
</form>
</block>

<block name="script"> <script type="text/javascript">
    Think.setValue('questiontype',{$questioninfo.questiontype});
    Think.setValue('chapter',{$questioninfo.chapter});
    Think.setValue('difficulty',{$questioninfo.difficulty});
    //导航高亮
    $('.side-sub-menu').find('a[href="{:U('ItemBank/myitems')}"]').closest('li').addClass('current');
    </script> </block>
